﻿using System;
using System.Data.Entity;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace JustMVCTest.Models
{
    /*
    public class CostCenter
    {
        [Key, Column(Order = 0)]
        [Required]
        [DisplayName("Cost Center Number")]
        [StringLength(10, ErrorMessage = "Length must be 10 chars or less")]
        public string Cost_Center_Number { get; set; }
        [Required]
        [DisplayName("Owner Mail")]
        [DataType(DataType.EmailAddress)]
        [RegularExpression(@"^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$", ErrorMessage = "Enter a valid Email address")]
        public string Owner_Mail { get; set; }
        [Required]
        [DisplayName("First Name")]
        [StringLength(20, ErrorMessage= "Length must be under 20 chars")]
        public string First_Name { get; set; }
        [Required]
        [DisplayName("Last Name")]
        [StringLength(20, ErrorMessage = "Length must be under 20 chars")]
        public string Last_Name { get; set; }
        //public int TotalCs { get; set; }
    }

    public partial class PODBContext : DbContext
    {
        public DbSet<CostCenter> CostCenter { get; set; }
    }
     */
}